﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MasterPage.master"
    AutoEventWireup="true" CodeFile="PurchaseOrderItems.aspx.cs" Inherits="Documents_PurchaseOrder_PurchaseOrderItems" %>

<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h2 style="border-bottom: solid 1px black">
        <asp:Image ID="imgUsers" runat="server" Width="15" Height="15" ImageUrl="" />&nbsp;Продукти
        към поръчка №
        <asp:Literal ID="litOrderNo" runat="server"></asp:Literal>
    </h2>
    <div>
        <div style="float: left; margin-right: 20px">
            Крака:
            <asp:GridView ID="gvLegList" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                DataKeyNames="LegItemId" DataSourceID="ldsLegItems" CellPadding="4" ForeColor="#333333"
                GridLines="None" Style="margin-right: 0px" OnSelectedIndexChanged="gvLegList_SelectedIndexChanged">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    Няма налични продукти от тип "Крак" за тази поръчка.
                </EmptyDataTemplate>
                <RowStyle BackColor="#EFF3FB" />
                <Columns>
                    <asp:CommandField ShowSelectButton="True" CancelText="Отказ" DeleteText="Изтрий"
                        EditText="Редактирай" InsertText="Добави" NewText="Нов" SelectText="Избери" UpdateText="Обнови" />
                    <asp:BoundField DataField="LegItemId" HeaderText="LegItemId" InsertVisible="False"
                        ReadOnly="True" SortExpression="LegItemId" Visible="False" />
                    <asp:BoundField DataField="PurchaseOrderId" HeaderText="PurchaseOrderId" SortExpression="PurchaseOrderId"
                        Visible="False" />
                    <asp:BoundField DataField="LegId" HeaderText="LegId" SortExpression="LegId" />
                    <asp:BoundField DataField="Quantity" HeaderText="Количество" SortExpression="Quantity" />
                    <asp:BoundField DataField="PurchasePrice" HeaderText="Цена" SortExpression="PurchasePrice" />
                    <asp:BoundField DataField="DeliveryDate" HeaderText="Дата на доставка" SortExpression="DeliveryDate" />
                    <asp:BoundField DataField="LineNet" HeaderText="LineNet" SortExpression="LineNet" />
                </Columns>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <br />
            <asp:LinqDataSource ID="ldsLegItems" runat="server" ContextTypeName="PurchaseOrders.PurchaseOrderItemsDataContext"
                TableName="PurchaseOrderLegItems" Where="PurchaseOrderId == @PurchaseOrderId">
                <WhereParameters>
                    <asp:QueryStringParameter Name="PurchaseOrderId" QueryStringField="OrderId" Type="Int32"
                        DefaultValue="0" />
                </WhereParameters>
            </asp:LinqDataSource>
            Калъфки:
            <asp:GridView ID="gvCoverList" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                DataKeyNames="CoverItemId" HorizontalAlign="Left" DataSourceID="ldsCoverItems"
                CellPadding="4" ForeColor="#333333" GridLines="None" OnSelectedIndexChanged="gvCoverList_SelectedIndexChanged">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    Няма налични продукти от тип "Калъфка" за тази поръчка.
                </EmptyDataTemplate>
                <RowStyle BackColor="#EFF3FB" />
                <Columns>
                    <asp:CommandField ShowSelectButton="True" CancelText="Отказ" DeleteText="Изтрий"
                        EditText="Редактирай" InsertText="Добави" NewText="Нов" SelectText="Избери" UpdateText="Обнови" />
                    <asp:BoundField DataField="CoverItemId" HeaderText="CoverItemId" InsertVisible="False"
                        ReadOnly="True" SortExpression="CoverItemId" Visible="False" />
                    <asp:BoundField DataField="PurchaseOrderId" HeaderText="PurchaseOrderId" SortExpression="PurchaseOrderId"
                        Visible="False" />
                    <asp:BoundField DataField="CoverId" HeaderText="CoverId" SortExpression="CoverId" />
                    <asp:BoundField DataField="Quantity" HeaderText="Количество" SortExpression="Quantity" />
                    <asp:BoundField DataField="PurchasePrice" HeaderText="Цена" SortExpression="PurchasePrice" />
                    <asp:BoundField DataField="DeliveryDate" HeaderText="Дата на доставка" SortExpression="DeliveryDate" />
                    <asp:BoundField DataField="LineNet" HeaderText="LineNet" SortExpression="LineNet" />
                </Columns>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:LinqDataSource ID="ldsCoverItems" runat="server" ContextTypeName="PurchaseOrders.PurchaseOrderItemsDataContext"
                TableName="PurchaseOrderCoverItems" Where="PurchaseOrderId == @PurchaseOrderId">
                <WhereParameters>
                    <asp:QueryStringParameter Name="PurchaseOrderId" QueryStringField="OrderId" Type="Int32"
                        DefaultValue="0" />
                </WhereParameters>
            </asp:LinqDataSource>
        </div>
        <div>

            <script type="text/jscript">
                function KeyPress(sender, args) {
                    if (args.get_keyCharacter() == sender.get_numberFormat().DecimalSeparator) {
                        args.set_cancel(true);
                    }
                }  
            </script>

            <asp:DetailsView ID="dvProductCoverInfo" runat="server" AutoGenerateRows="False"
                DataKeyNames="CoverItemId,PurchaseOrderId" DataSourceID="ldsProductInfo" OnItemInserting="dvProductCoverInfo_ItemInserting"
                OnModeChanging="dvProductCoverInfo_ModeChanging" BackColor="White" BorderColor="#999999"
                BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <Fields>
                    <asp:TemplateField HeaderText="Калъфка" SortExpression="CoverId">
                        <EditItemTemplate>
                            <telerik:RadComboBox ID="radCmbCovers" runat="server" AllowCustomText="true" EmptyMessage="Избери..."
                                ChangeTextOnKeyBoardNavigation="true" DataSource='<%# Covers %>' DataTextField="NameBG"
                                DataValueField="CoverId" SelectedValue='<%# Bind("CoverId") %>'>
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <telerik:RadComboBox ID="radCmbCovers" runat="server" AllowCustomText="true" EmptyMessage="Избери..."
                                ChangeTextOnKeyBoardNavigation="true" DataSource='<%# Covers %>' DataTextField="NameBG"
                                DataValueField="CoverId" SelectedValue='<%# Bind("CoverId") %>'>
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </telerik:RadComboBox>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("CoverId") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Количество" SortExpression="Quantity">
                        <EditItemTemplate>
                            <telerik:RadNumericTextBox DbValue='<%# Bind("Quantity") %>' MinValue="0" MaxValue="999999999"
                                EmptyMessage="" ShowSpinButtons="false" Type="Number" Width="200px" DataType="System.Int32"
                                ID="radQuantity" runat="server" Culture="Bulgarian (Bulgaria)" InvalidStyleDuration="100">
                                <NumberFormat AllowRounding="false" DecimalDigits="3" KeepNotRoundedValue="False" />
                                <ClientEvents OnKeyPress="KeyPress" />
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator ID="rfvQuantity" ControlToValidate="radQuantity" runat="server"
                                ErrorMessage="Полето количество е задължително!" ToolTip="Полето количество е задължително!">*</asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <telerik:RadNumericTextBox MinValue="0" MaxValue="999999999" EmptyMessage="" ShowSpinButtons="false"
                                Type="Number" Width="200px" DataType="System.Int32" ID="radQuantity" runat="server"
                                Culture="Bulgarian (Bulgaria)" InvalidStyleDuration="100" DbValue='<%# Bind("Quantity") %>'>
                                <NumberFormat AllowRounding="false" DecimalDigits="3" KeepNotRoundedValue="False" />
                                <ClientEvents OnKeyPress="KeyPress" />
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator ID="rfvQuantity" ControlToValidate="radQuantity" runat="server"
                                ErrorMessage="Полето количество е задължително!" ToolTip="Полето количество е задължително!">*</asp:RequiredFieldValidator>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("Quantity") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Цена" SortExpression="PurchasePrice">
                        <EditItemTemplate>
                            <telerik:RadNumericTextBox EmptyMessage="" ShowSpinButtons="false" Type="Currency"
                                Width="200px" ID="radPurchasePrice" DataType="System.Decimal" runat="server"
                                Culture="Bulgarian (Bulgaria)" InvalidStyleDuration="100" DbValue='<%# Bind("PurchasePrice") %>'>
                                <NumberFormat AllowRounding="true" KeepNotRoundedValue="False" />
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator ID="rfvPurchasePrice" ControlToValidate="radPurchasePrice"
                                runat="server" ErrorMessage="Полето цена е задължително!" ToolTip="Полето цена е задължително!">*</asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <telerik:RadNumericTextBox EmptyMessage="" ShowSpinButtons="false" Type="Currency"
                                Width="200px" ID="radPurchasePrice" DataType="System.Decimal" runat="server"
                                Culture="Bulgarian (Bulgaria)" InvalidStyleDuration="100" DbValue='<%# Bind("PurchasePrice") %>'>
                                <NumberFormat AllowRounding="true" KeepNotRoundedValue="False" />
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator ID="rfvPurchasePrice" ControlToValidate="radPurchasePrice"
                                runat="server" ErrorMessage="Полето цена е задължително!" ToolTip="Полето цена е задължително!">*</asp:RequiredFieldValidator>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("PurchasePrice") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Дата на доставка" SortExpression="DeliveryDate">
                        <EditItemTemplate>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <asp:TextBox ID="tbDeliveryDate" runat="server" Text='<%# Bind("DeliveryDate") %>'></asp:TextBox>
                            <asp:Button ID="btnChooseDeliveryDate" runat="server" Text="..." />&nbsp;<asp:CompareValidator
                                ID="cvOrderDate" runat="server" ControlToValidate="tbDeliveryDate" Type="Date"
                                Display="Dynamic" Operator="DataTypeCheck" ErrorMessage="Моля въведете валидна дата!"
                                ToolTip="Моля въведете валидна дата!">*</asp:CompareValidator>
                            <ajaxToolkit:CalendarExtender ID="ajaxCalendarOrderDate" runat="server" TargetControlID="tbDeliveryDate"
                                Format="dd.MM.yyyy г." PopupButtonID="btnChooseDeliveryDate" />
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("DeliveryDate") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="LineNet" SortExpression="LineNet">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("LineNet") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("LineNet") %>'></asp:TextBox>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("LineNet") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ShowEditButton="True" ShowInsertButton="True" ButtonType="Button"
                        DeleteText="Изтрий" EditText="Редактирай" InsertText="Добави" NewText="Нов" SelectText="Избери"
                        UpdateText="Обнови" CancelText="Отказ" />
                </Fields>
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <AlternatingRowStyle BackColor="#DCDCDC" />
            </asp:DetailsView>
            <asp:LinqDataSource ID="ldsProductInfo" runat="server" ContextTypeName="PurchaseOrders.PurchaseOrderItemsDataContext"
                EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="PurchaseOrderCoverItems"
                OnSelecting="ldsProductInfo_Selecting" Where="CoverItemId == @CoverItemId">
                <WhereParameters>
                    <asp:ControlParameter ControlID="gvCoverList" Name="CoverItemId" PropertyName="SelectedValue"
                        Type="Int32" />
                </WhereParameters>
            </asp:LinqDataSource>
            <asp:DetailsView ID="dvProductLegInfo" runat="server" AutoGenerateRows="False" DataKeyNames="LegItemId,PurchaseOrderId"
                DataSourceID="ldsProductInfo2" OnItemInserting="dvProductLegInfo_ItemInserting"
                OnModeChanging="dvProductLegInfo_ModeChanging" BackColor="White" BorderColor="#999999"
                BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <Fields>
                    <asp:TemplateField HeaderText="Крак" SortExpression="LegId">
                        <EditItemTemplate>
                            <telerik:RadComboBox ID="radCmbLegs" runat="server" AllowCustomText="true" EmptyMessage="Избери..."
                                ChangeTextOnKeyBoardNavigation="true" DataSource='<%# Legs %>' DataTextField="NameBG"
                                DataValueField="LegId" SelectedValue='<%# Bind("LegId") %>'>
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <telerik:RadComboBox ID="radCmbLegs" runat="server" AllowCustomText="true" EmptyMessage="Избери..."
                                ChangeTextOnKeyBoardNavigation="true" DataSource='<%# Legs %>' DataTextField="NameBG"
                                DataValueField="LegId" SelectedValue='<%# Bind("LegId") %>'>
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </telerik:RadComboBox>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("LegId") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Количество" SortExpression="Quantity">
                        <EditItemTemplate>
                            <telerik:RadNumericTextBox DbValue='<%# Bind("Quantity") %>' MinValue="0" MaxValue="999999999"
                                EmptyMessage="" ShowSpinButtons="false" Type="Number" Width="200px" DataType="System.Int32"
                                ID="radQuantity" runat="server" Culture="Bulgarian (Bulgaria)" InvalidStyleDuration="100">
                                <NumberFormat AllowRounding="false" DecimalDigits="3" KeepNotRoundedValue="False" />
                                <ClientEvents OnKeyPress="KeyPress" />
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator ID="rfvQuantity" ControlToValidate="radQuantity" runat="server"
                                ErrorMessage="Полето количество е задължително!" ToolTip="Полето количество е задължително!">*</asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <telerik:RadNumericTextBox MinValue="0" MaxValue="999999999" EmptyMessage="" ShowSpinButtons="false"
                                Type="Number" Width="200px" DataType="System.Int32" ID="radQuantity" runat="server"
                                Culture="Bulgarian (Bulgaria)" InvalidStyleDuration="100" DbValue='<%# Bind("Quantity") %>'>
                                <NumberFormat AllowRounding="false" DecimalDigits="3" KeepNotRoundedValue="False" />
                                <ClientEvents OnKeyPress="KeyPress" />
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator ID="rfvQuantity" ControlToValidate="radQuantity" runat="server"
                                ErrorMessage="Полето количество е задължително!" ToolTip="Полето количество е задължително!">*</asp:RequiredFieldValidator>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("Quantity") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Цена" SortExpression="PurchasePrice">
                        <EditItemTemplate>
                            <telerik:RadNumericTextBox EmptyMessage="" ShowSpinButtons="false" Type="Currency"
                                Width="200px" ID="radPurchasePrice" DataType="System.Decimal" runat="server"
                                Culture="Bulgarian (Bulgaria)" InvalidStyleDuration="100" DbValue='<%# Bind("PurchasePrice") %>'>
                                <NumberFormat AllowRounding="true" KeepNotRoundedValue="False" />
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator ID="rfvPurchasePrice" ControlToValidate="radPurchasePrice"
                                runat="server" ErrorMessage="Полето цена е задължително!" ToolTip="Полето цена е задължително!">*</asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <telerik:RadNumericTextBox EmptyMessage="" ShowSpinButtons="false" Type="Currency"
                                Width="200px" ID="radPurchasePrice" DataType="System.Decimal" runat="server"
                                Culture="Bulgarian (Bulgaria)" InvalidStyleDuration="100" DbValue='<%# Bind("PurchasePrice") %>'>
                                <NumberFormat AllowRounding="true" KeepNotRoundedValue="False" />
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator ID="rfvPurchasePrice" ControlToValidate="radPurchasePrice"
                                runat="server" ErrorMessage="Полето цена е задължително!" ToolTip="Полето цена е задължително!">*</asp:RequiredFieldValidator>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("PurchasePrice") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Дата на доставка" SortExpression="DeliveryDate">
                        <EditItemTemplate>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <asp:TextBox ID="tbDeliveryDate" runat="server" Text='<%# Bind("DeliveryDate") %>'></asp:TextBox>
                            <asp:Button ID="btnChooseDeliveryDate" runat="server" Text="..." />&nbsp;<asp:CompareValidator
                                ID="cvOrderDate" runat="server" ControlToValidate="tbDeliveryDate" Type="Date"
                                Display="Dynamic" Operator="DataTypeCheck" ErrorMessage="Моля въведете валидна дата!"
                                ToolTip="Моля въведете валидна дата!">*</asp:CompareValidator>
                            <ajaxToolkit:CalendarExtender ID="ajaxCalendarOrderDate" runat="server" TargetControlID="tbDeliveryDate"
                                Format="dd.MM.yyyy г." PopupButtonID="btnChooseDeliveryDate" />
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("DeliveryDate") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="LineNet" SortExpression="LineNet">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("LineNet") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("LineNet") %>'></asp:TextBox>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("LineNet") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ShowEditButton="True" ShowInsertButton="True" ButtonType="Button"
                        DeleteText="Изтрий" EditText="Редактирай" InsertText="Добави" NewText="Нов" SelectText="Избери"
                        UpdateText="Обнови" CancelText="Отказ" />
                </Fields>
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <AlternatingRowStyle BackColor="#DCDCDC" />
            </asp:DetailsView>
            <asp:LinqDataSource ID="ldsProductInfo2" runat="server" ContextTypeName="PurchaseOrders.PurchaseOrderItemsDataContext"
                EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="PurchaseOrderLegItems"
                OnSelecting="ldsProductInfo2_Selecting" Where="LegItemId == @LegItemId">
                <WhereParameters>
                    <asp:ControlParameter ControlID="gvLegList" Name="LegItemId" PropertyName="SelectedValue"
                        Type="Int32" />
                </WhereParameters>
            </asp:LinqDataSource>
        </div>
        <br style="clear: both" />
        <hr />
        <asp:Button ID="btnNewLegItem" CausesValidation="false" runat="server" Text="Добави продукт - крак"
            OnClick="btnNewLegItem_Click" />
        <asp:Button ID="btnNewCoverItem" CausesValidation="false" runat="server" Text="Добави продукт - калъфка"
            OnClick="btnNewCoverItem_Click" />
    </div>
</asp:Content>
